<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/vue.js"></script>
</head>
<body>
<div id="app">
    <ul>
        <li>aa</li>
        <li>bb</li>
        <li>cc</li>
        <li>dd</li>
    </ul>

    <ul>
        <li v-for="item in arrs">{{item}}</li>
    </ul>
        <!--v-for循环指令格式:(元素,索引) in 数组/集合 元素,索引  名字改啥无所谓   位置是固定的 -->
    <ul>
        <li v-for="(item , index) in arrs">{{index}}---{{item}}</li>
        <li v-for="(emp , index) in emps">{{emp.id}}--{{emp.name}}--{{emp.age}}</li>
    </ul>
</div>
<script>

    var app = new Vue({
        el:'#app',
        data:{
           arrs:["a","b","d"],
            emps:[
                {id:1,name:"小小A",age:12},
                {id:2,name:"小小B",age:15},
                {id:3,name:"小小C",age:13}
            ]
        }
    })
</script>
</body>
</html>